package com.yesep.learn.jwt.demo.service;

import org.springframework.stereotype.Service;

import com.yesep.learn.jwt.demo.model.User;

/**
 * @Description: 
 */
@Service
public class UserService {
	public User get(String username) {
		User user = new User();
		user.setUsername(username);
		user.setPassword("$2a$10$Ue0R.v5A4Wi0/BRB4jN4Bu6GJU1YzXfmtF2ProZDj5tmO9LdWEjS.");
		user.setNickname("管理员");
		user.setStatus("1");
		user.addRole("admin");
		user.addRole("super");
		return user;
	}
}
